/**
 * 报名登记
 */
define(function (require, exports, module) {
    //引入视图基类
    var ELView = require("elview");
    var aw = require("ajaxwrapper");
    //assets
    var template = require("./assets/tpl/waterelectric_main.tpl");
    require("./assets/css/waterelectric_main.css");

    //business

    //component
    var waterelectricSubnavComp = require("./component/waterelectricSubnavComp");
    var waterelectricGridComp = require("./component/waterelectricGridComp");
    var waterelectricForm = require("./component/waterelectricForm");
    var waterelectricGrid = require("./component/waterelectricGrid");

    var waterelectric_main = ELView.extend({
        attrs: {
            template: template
        },
        events:{
        },
        initComponent: function (params, widget) {
        	waterelectricSubnavComp.initComponent(params, widget);
        	waterelectricGridComp.initComponent(params, widget);
        	waterelectricForm.initComponent(params, widget);
        	waterelectricGrid.initComponent(params, widget);
        },
        afterInitComponent: function (params, widget) {
        	widget.get("grid").refresh();
        }
    });

    module.exports = waterelectric_main;
});
